package com.dr.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dr.entity.Comment;
import com.dr.mapper.CommentMapper;
import com.dr.service.CommentService;
@Service
@Transactional
public class CommentServiceImpl implements CommentService {
	@Autowired
	private CommentMapper commentMapper;
	@Override
	public List<Comment> AllComment(Comment c) {
		// TODO Auto-generated method stub
		return commentMapper.AllComment(c);
	}

	@Override
	public Integer getCount(Comment c) {
		// TODO Auto-generated method stub
		return commentMapper.getCount(c);
	}

	@Override
	public Integer updateComment(int id, String reply) {
		// TODO Auto-generated method stub
		return commentMapper.updateComment(id, reply);
	}

	@Override
	public Integer deleteComment(int id) {
		// TODO Auto-generated method stub
		return commentMapper.deleteComment(id);
	}

}
